import { Controller, Get } from '@nestjs/common';
import { MessagePattern } from '@nestjs/microservices';

@Controller()
export class AppMessage {
  @MessagePattern('basic')
  hello(data: any): string {
    return `hello from basic-service ${data}`;
  }
}
